package com.pingan.haofang.searchcloud.indexdatasource.facade;

import com.pingan.haofang.searchcloud.common.dto.OperationResult;
import com.pingan.haofang.searchcloud.indexdatasource.dto.IndexDatasourceScheduleImportDTO;
import com.pingan.haofang.searchcloud.indexdatasource.dto.ScheduleTaskDto;
import com.pingan.haofang.searchcloud.quartz.dto.TaskQueryDto;

import java.util.List;

/**
 * 索引构建调度Facade接口
 *
 * @author baojie371
 * @date 17/5/18
 * @since 1.0.0
 */
public interface IndexDatasourceScheduleFacade {

    OperationResult importDatasource(long indexId, IndexDatasourceScheduleImportDTO dto);

    /**
     * 根据条件获取所有有效的任务
     *
     * @return
     */
    List<ScheduleTaskDto> getAllEffectiveTasks(TaskQueryDto dto);
}
